import { provide, ref, type InjectionKey } from 'vue'
import { CusDataKey, type ICusData } from './injectKey'

export const useComm = () => {
  const data = ref<ICusData>({
    sysName: '北京医欣',
    expired: new Date().toLocaleString(),
  })
  provide(CusDataKey, data)

  return {
    data,
  }
}
